import React from 'react'
import { useComponentsStore } from '../../stores/components'
import MonacoEditor from '@monaco-editor/react'
export default function Source() {
  const { components} = useComponentsStore()
  return (
   <MonacoEditor
   height={'100%'}
   language={'json'}
   path='components.json'
   value={JSON.stringify(components,null,2)}

   >
    
   </MonacoEditor>
  )
}
